using System;

using libsecondlife;

using Feathertail.Tracker;

namespace Feathertail.Tracker.Filters
{
    public class UUIDFilter : ObjectFilter
    {
        private LLUUID _UUID = LLUUID.Zero;

        public UUIDFilter(LLUUID uuid)
        {
            _UUID = uuid;
        }

        public UUIDFilter(LLUUID uuid, FilterType type)
        {
            _UUID = uuid;
            _FilterType = type;
        }


        public override bool IncludeObject(SecondLife Client, LLObject obj)
        {
            if (_FilterType == FilterType.Include)
            {
                return (obj.ID == _UUID);
            }
            else
            {
                return !(obj.ID == _UUID);
            }
        }
    }
}
